using System.ComponentModel.DataAnnotations;

namespace Vecen.BangChuang.Authorization.Accounts.Dto {
    /// <summary>
    /// 手机端注册请求结构
    /// </summary>
    public class RegisterRequestDto {

        /// <summary>
        /// 省份ID
        /// </summary>
        public int? ProvinceId { get; set; }

        /// <summary>
        /// 城市ID
        /// </summary>
        public int? CityId { get; set; }

        /// <summary>
        /// 区县ID
        /// </summary>
        public int? DistrictId { get; set; }

        /// <summary>
        /// 微信号
        /// </summary>
        [MaxLength(64)]
        public string WeChat { get; set; }

        /// <summary>
        /// 注册手机号
        /// </summary>
        [MaxLength(11)]
        [Required]
        public string PhoneNumber { get; set; }

        /// <summary>
        /// 验证码
        /// </summary>
        /// <returns></returns>
        [MaxLength(6)]
        [Required]
        public string ValidationCode { get; set; }

        /// <summary>
        /// 密码
        /// </summary>
        /// <returns></returns>
        [Required]
        [MaxLength(18)]
        public string Password { get; set; }

        /// <summary>
        /// 推荐人手机号
        /// </summary>
        /// <returns></returns>
        [MaxLength(11)]
        public string RecommendPhoneNumber { get; set; }

        /// <summary>
        /// 推荐人微信号
        /// </summary>
        /// <returns></returns>
        [MaxLength(64)]
        public string RecommendWeChat { get; set; }
    }
}